<!DOCTYPE html>

<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">

<title>notes - RDoc Documentation</title>

<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
</script>

<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>


<body class="file">
<nav id="metadata">
  <nav id="home-section" class="section">
  <h3 class="section-header">
    <a href="./index.html">Home</a>
    <a href="./table_of_contents.html#classes">Classes</a>
    <a href="./table_of_contents.html#methods">Methods</a>
  </h3>
</nav>


  <nav id="search-section" class="section project-section" class="initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <h3 class="section-header">
      <input type="text" name="search" placeholder="Search" id="search-field"
             title="Type to search, Up and Down to navigate, Enter to load">
    </h3>
  </form>

  <ul id="search-results" class="initially-hidden"></ul>
</nav>


  <div id="project-metadata">
    <nav id="fileindex-section" class="section project-section">
  <h3 class="section-header">Pages</h3>

  <ul>
  
    <li class="file"><a href="./Gemfile.html">Gemfile</a>
  
    <li class="file"><a href="./README_rdoc.html">README</a>
  
    <li class="file"><a href="./Rakefile.html">Rakefile</a>
  
    <li class="file"><a href="./notes.html">notes</a>
  
    <li class="file"><a href="./syctask_rdoc.html">syctask</a>
  
  </ul>
</nav>

    <nav id="classindex-section" class="section project-section">
  <h3 class="section-header">Class and Module Index</h3>

  <ul class="link-list">
  
    <li><a href="./Syctask.html">Syctask</a>
  
    <li><a href="./Syctask/Evaluator.html">Syctask::Evaluator</a>
  
    <li><a href="./Syctask/Meeting.html">Syctask::Meeting</a>
  
    <li><a href="./Syctask/Schedule.html">Syctask::Schedule</a>
  
    <li><a href="./Syctask/Settings.html">Syctask::Settings</a>
  
    <li><a href="./Syctask/Statistics.html">Syctask::Statistics</a>
  
    <li><a href="./Syctask/Task.html">Syctask::Task</a>
  
    <li><a href="./Syctask/TaskPlanner.html">Syctask::TaskPlanner</a>
  
    <li><a href="./Syctask/TaskScheduler.html">Syctask::TaskScheduler</a>
  
    <li><a href="./Syctask/TaskService.html">Syctask::TaskService</a>
  
    <li><a href="./Syctask/TaskTracker.html">Syctask::TaskTracker</a>
  
    <li><a href="./Syctask/Times.html">Syctask::Times</a>
  
    <li><a href="./Syctask/Track.html">Syctask::Track</a>
  
    <li><a href="./Minitest.html">Minitest</a>
  
    <li><a href="./Minitest/Test.html">Minitest::Test</a>
  
    <li><a href="./Sycutil.html">Sycutil</a>
  
    <li><a href="./Sycutil/Console.html">Sycutil::Console</a>
  
    <li><a href="./ConsoleTimer.html">ConsoleTimer</a>
  
    <li><a href="./Object.html">Object</a>
  
    <li><a href="./Sycstring.html">Sycstring</a>
  
    <li><a href="./Syctime.html">Syctime</a>
  
    <li><a href="./TestDefault.html">TestDefault</a>
  
    <li><a href="./TestEnvironment.html">TestEnvironment</a>
  
    <li><a href="./TestEvaluator.html">TestEvaluator</a>
  
    <li><a href="./TestMeeting.html">TestMeeting</a>
  
    <li><a href="./TestSchedule.html">TestSchedule</a>
  
    <li><a href="./TestStatistics.html">TestStatistics</a>
  
    <li><a href="./TestTask.html">TestTask</a>
  
    <li><a href="./TestTaskPlanner.html">TestTaskPlanner</a>
  
    <li><a href="./TestTaskScheduler.html">TestTaskScheduler</a>
  
    <li><a href="./TestTaskService.html">TestTaskService</a>
  
    <li><a href="./TestTaskTracker.html">TestTaskTracker</a>
  
    <li><a href="./TestTimeUtil.html">TestTimeUtil</a>
  
    <li><a href="./TestTimes.html">TestTimes</a>
  
  </ul>
</nav>

  </div>
</nav>

<div id="documentation" class="description">
  
<p>i                       i-c 0     start 1     0      -0 1     stop  1     0
-1 2     start 2     1      -1 3     stop  2     1      -2 4     start 3   
2      -2 5     stop  3     2      -3 6     stop  4     3      -3</p>

<p>c += 1 if i % 2 == 1</p>

<p>Determine the greates id assuming it is 20</p>

<p>Associate ids to task-files in a hash</p>

<p>ids = {“1” =&gt; [/home/user/.tasks/1.task,</p>

<pre class="ruby">        <span class="ruby-regexp">%rhome/</span><span class="ruby-identifier">ser</span><span class="ruby-operator">/</span>.<span class="ruby-identifier">tasks</span><span class="ruby-operator">/</span><span class="ruby-identifier">project</span><span class="ruby-operator">/</span><span class="ruby-value">1</span>.<span class="ruby-identifier">task</span>,
        <span class="ruby-regexp">%rhome/</span><span class="ruby-identifier">ser</span><span class="ruby-operator">/</span><span class="ruby-value">1</span>.<span class="ruby-identifier">task</span>],
<span class="ruby-string">&quot;2&quot;</span> =<span class="ruby-operator">&gt;</span> [<span class="ruby-regexp">%rhome/</span><span class="ruby-identifier">ser</span><span class="ruby-operator">/</span>.<span class="ruby-identifier">tasks</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>.<span class="ruby-identifier">task</span>,
        <span class="ruby-regexp">%rhome/</span><span class="ruby-identifier">ser</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>.<span class="ruby-identifier">task</span>],
<span class="ruby-operator">...</span>}
</pre>

<p>Then re-index tasks that are not unique and associate the old id to the new
task-files</p>

<p>new_ids = {“1” =&gt; {“20” =&gt; /home/user/.tasks/project/1.task,</p>

<pre class="ruby">        <span class="ruby-string">&quot;21&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-regexp">%rhome/</span><span class="ruby-identifier">ser</span><span class="ruby-operator">/</span><span class="ruby-value">1</span>.<span class="ruby-identifier">task</span>},
<span class="ruby-string">&quot;2&quot;</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-string">&quot;22&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-regexp">%rhome/</span><span class="ruby-identifier">ser</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>.<span class="ruby-identifier">task</span>},
<span class="ruby-operator">...</span>}
</pre>

<p>Rework duration of tasks</p>

<p>When planning a task then the duration is set and remaining time is set to
the duration When showing the schedule the task is added at or after the
current time within the time line. When task is started the remaining is
used as the start of the count down timer When task is stopped the lead
time is subtracted from remaining When task is restarted count down timer
is started with the value of remaining When showing schedule the task is
added with the remaining time. If the  remaining time is &lt;= 0 than 15
minutes as the duration is shown if task is not marked as done. Done tasks
are shown in the schedule’s time line with their actual lead_time in the
past. The time that is shown is the actual processing time duration minus
remaining. The minimum time shown is 15 minutes.</p>

<pre>10        20        30        40</pre>

<p>0123456789012345678901234567890123456789012345678 |—|—|—|—|—|—|—|—|—|—|—|—|
8   9  10  11  12  13  14  15  16  17  18  19  20</p>

<p>current time   position  diff   positon calculation              result</p>

<pre>9:00           4        [ 1,   0] (( 1 * 60 +  0) / 15.0).round   4 
9:10           5        [ 1,  10] (( 1 * 60 + 10) / 15.0).round   5</pre>

<p>10:00           8        [ 2,   0] (( 2 * 60 +  0) / 15.0).round   8 11:07 
12        [ 3,   7] (( 3 * 60 +  7) / 15.0).round  12</p>

<pre>7:00           0        [-1,   0] ((-1 * 60 +  0) / 15.0).round  -4
7:30           0        [ 0, -30] (( 0 * 60 - 30) / 15.0).round  -2</pre>

<p>Define settings Define default tasks settings –general_tasks
plan,talk,meet,break general_tasks file plan,1 talk,2 meet,3 break,4</p>

<p>Statistics 2013-04-10 - 2013-04-20 8 working days</p>

<pre>total    average   max   min</pre>

<p>working time meeting time task processing unplanned tasks done tasks open
tasks</p>

<p>Add done tasks to time line</p>

<p>Task    Duration 1       2 2       3 3       1</p>

<pre>xxooox</pre>

<p>|—|-xxooxx| xxooox</p>

<p>|—xooxxxoo| xxooox xoox</p>

<p>|–xxooxxxoo| xxooox xox</p>

<p>end_position done_tasks.size index max_duration duration total_duration 3  
2               0     2            1             0 3            2          
1     2            1             1</p>

<p>max_duration = end_position - done_tasks.size + index - total_duration</p>

<pre>2               3                2            0+1         0
2               3                2            1+1         1</pre>

<p>prio with position</p>

<p>origin    1)    2) 1         3     1 2         4     4 3         5     2 4 
1     3 5         2     5</p>

<p>1) syctask -o 3,4,5 -p 0 2) syctask -o 2,3,5 -p 3</p>

<p>Determine the position for time in timeline -w 8:30-12:45 results in a time
line of |—|—|—|—|—| 8   9  10  11  12  13</p>

<p>position_for_time(9) will return position = 2 but it should be 4</p>

<p>That is the position = starts.diff(now) + starts.min / 15</p>

</div>



<footer id="validator-badges">
  <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
  <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
  <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
</footer>

